
// import 'package:fluttertrip/models/config_model.dart';
import 'package:flutter_trip/models/config_model.dart';
class CommonModel{
  final String icon;
  final String title;
  final String url;
  final String statusBarColor;
  final bool hideAppBar;

  CommonModel({required this.icon,
    required this.title,required this.url,
    required this.statusBarColor,
    required this.hideAppBar});

  factory CommonModel.fromJson(Map<String,dynamic> json){

    return CommonModel(
      icon:json['icon']==null?'':json['icon'],
      title:json['title']==null?'':json['title'],
      url:json['url']==null?'':json['url'],
      statusBarColor:json['statusBarColor']==null?'':json['statusBarColor'],
      hideAppBar:json['hideAppBar']==null?false:json['hideAppBar'],
    );
  }



}